<extend name="Public:template" />
<block name="page_body">
	<div class="row top-hot">
		<div class="span4">
			<include file="Public:left_menu_cate"/>
			<div class="mt10">
				<div class="thumbnail text-center">
					<img src="__ROOT__/statics/www/images/weixin.jpg">
					<p>用微信你也可以轻松订饭，购物啦！不想扫扫看？</p>
				</div>
			</div>
		</div>
		
		<div class="span16 mt10">		
			<div class="row text-center imgLink">
				<a href="{:U('Product/showListPage',array('spread'=>'new'))}"  class="span4  <if condition="$search['spread'] eq 'new'">active</if>" >
					<img src="http://imgout.ph.126.net/22008029/link_xp.jpg">
				</a>
				<a href="{:U('Product/showListPage',array('spread'=>'rmd'))}"  class="span4 <if condition="$search['spread'] eq 'rmd'">active</if>" >
					<img src="http://imgout.ph.126.net/22008030/link_cx.jpg">
				</a>
				<a href="{:U('Product/showListPage',array('spread'=>'hot'))}"  class="span4 <if condition="$search['spread'] eq 'hot'">active</if>" >
					<img src="http://imgout.ph.126.net/22008031/link_rx.jpg">
				</a>
				<a href="{:U('Product/showListPage',array('spread'=>'frn'))}"  class="span4 <if condition="$search['spread'] eq 'frn'">active</if>" >
					<img src="http://imgout.ph.126.net/22460054/link_lb.jpg">
				</a>
			</div>
			<div class="row">
				<div class="span16" >
					<switch name="search.spread" >
						<case value="new"><span class="span4"><img src="__ROOT__/statics/www/images/icons/arrow_cartoon.jpg"></span></case>
						<case value="rmd"><span class="span4"></span><span class="span4"><img src="__ROOT__/statics/www/images/icons/arrow_cartoon.jpg"></span></case>
						<case value="hot"><span class="span8"></span><span class="span4"><img src="__ROOT__/statics/www/images/icons/arrow_cartoon.jpg"></span></case>
						<case value="frn"><span class="span12"></span><span class="span3"><img src="__ROOT__/statics/www/images/icons/arrow_cartoon.jpg"></span></case>
					</switch>
				</div>
				<div class="span16" style="border-bottom:2px solid #cccccc"></div>
			</div>
			<div class="row prodList mt10">
				<div class="span16">
					<ul class="thumbnails">
						<volist name="prodData.list" id="val">
						<li class="span4">
							<div class="thumbnail text-center">
								<img src="{$val.prod_id|m_prod_pic}" class="pic160" alt="{$val.name}">
								<h5><a href="#">{$val.name} {$val.spec}</a></h5>
								<p class="price"><span class="now">￥{$val.price_real}</span><span class="old">￥{$val.price_sale}</span></p>
								<p ><button type="button" class="btn btn-warning btn-small withTip" onclick="addToCart('{$val.prod_id}','1','1',this)"><i class="icon-white icon-shopping-cart"></i>立即购买</button></p>
							</div>
						</li>
						</volist>
					</ul>
				</div>
				<div class="span16">
					<div class="pages">
						{:str_replace('条记录','件商品',$prodData['page'])}
					</div>
				</div>
			</div>
		</div>
	</div>
</block>
<block name="script_footer">
<script type="text/javascript">
	$(function(){
		$('.statusBtn a.active').addClass('btn-warning');
	})
</script>
</block>